function getWindowClientArea() {
    if (!isNaN(parseInt(window.innerWidth, 10))) { //Non-IE
        return { width: window.innerWidth, height: window.innerHeight };
    } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { //IE 6+ in 'standards compliant mode'
        return { width: document.documentElement.clientWidth, height: document.documentElement.clientHeight };
    } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { //IE 4 compatible
        return { width: document.body.clientWidth, height: document.body.clientHeight };
    }
}
